package com.yymx.toback.common.enums;

/**
 * mobile返回状态及信息 zhanghq on 2018/8/10.
 */
public enum ResultEnum {
	IS_YES("1","默认、删除"),
	IS_NO("0","正常"),
	UNKONW_ERROR("-1", "未知错误"),
	SUCCESS("200", "成功"),
	VALID_ERROR("-2","数据验证错误"),
	ERROR("500","失败"),
    /**
     * 校验常量格式定义：类名_字段名_校验规则
     * 例：USER(类名)_USERNAME（字段名）_IS_NULL（当前校验规则）
     */
    USER_USERNAME_IS_NULL("1000", "用户名不能为空!"),
    USER_PASSWORD_IS_NULL("1001", "密码不能为空"),
    USER_PHONE_IS_NULL("1002", "手机号码不能为空"),
    USER_PHONE_IS_REGISTER("1003", "该手机号已经注册"),
    USER_PHONE_IS_WRONG("1004", "手机号格式不正确"),
    USER_USER_NOT_EXIST("1005", "用户注册失败"),
	USER_RESULT_STATUS_FAILED("1055", "用户注册失败"),
    USER_USER_RECEIVE_NAME_IS_NULL("1006", "收件人不能为空"),
    USER_USER_RECEIVE_PHONE_IS_NULL("1007", "联系电话不能为空"),
    USER_USER_RECEIVE_PROVINCE_IS_NULL("1008", "省份不能为空"),
    USER_USER_RECEIVE_CITY_IS_NULL("1009", "城市不能为空"),
    USER_USER_RECEIVE_PLACE_IS_NULL("1010", "详细地址不能为空"),
	USER_PHONE_IS_NOT_REGISTER("1011", "该手机号未注册"),
	//USER_AREA_CODE_ID_IS_NULL("1012", "codeId不能为空"),
	USER_RECEIVE_PLACE_IS_NULL("1013", "邮寄地址不存在"),
	USER_USER_TENDER_IS_NULL("1014", "用户支持记录不存在"),
	USER_USER_MAIL_ADDRESS_IS_NULL("1015", "邮寄地址不存在"),
	//USER_USER_NOT_MATCH_MAIL_ADDRESS("1016", "用户与邮寄地址不匹配"),
	USER_USER_NOT_SET_REAL_NAME("1017", "用户没有实名认证"),
	USER_USER_SINA_PAY_EXCEPTION("1018", "实名信息有异常"),
	USER_USER_NOT_SET_PAY_PASSWORD("1019", "用户没有设置支付密码"),
	USER_USER_NOT_TENDER("1020", "您不具备购买资格，请联系客服"),
	USER_USER_NOT_BIND_CARD("1021", "用户未绑卡"),
	USER_USER_SINGLE_INFO_NOT_EXIST("1022", "用户注册信息有误"),
	USER_USER_REAL_NAME_IS_NULL("1023", "真实姓名不能为空"),
	USER_USER_CARD_ID_IS_NULL("1024", "身份证不能为空"),
	USER_USER_CARD_ID_IS_EXIST("1025", "该身份证已认证"),
	USER_USER_ID_IS_EXIST("1026", "用户ID不能为空"),
	USER_BANK_CODE_IS_EXIST("1027", "银行卡不合法"),
	USER_BANK_CODE_NU_EXIST("1028", "银行卡号不能为空"),
	USER_BANK_IS_SUCCESS("1029", "银行卡号已存在"),
	USER_BANK_TICKET_IS_NULL("1030", "银行卡号ticket不存在"),
	USER_BANK_VALID_CODE_IS_NULL("1031", "绑卡短信验证码为空"),
	USER_USER_SINA_EXCEPTION("1032", "注册信息异常"),
	USER_USER_STATUS_IS_FREEZE("1033", "用户冻结状态不允许操作"),
	USER_USER_PAY_PASSWORD_IS_SET("1034", "用户已经设置支付密码"),
	USER_USER_TENDER_RECORD_MAIL_ADDRESS_CAN_NOT_UPDATE("1035", "用户邮寄地址不能修改"),
	//USER_USER_TENDER_RECORD_HAVE_NOT_SUCCESS("1036", "您还有已支持还未成功的项目"),
	USER_USER_IS_FREEZE("1037", "当前账户已冻结，请联系客服"),
	USER_SINA_NO_EXIST("1038", "用户注册信息有误"),
	USER_USER_MAIL_ADDRESS_CAN_NOT_ADD("1039", "邮寄地址不能超过10条"),
	USER_BANK_IS_FAIL("1040", "银行卡号不存在"),
	INVITE_USER__IS_NULL("1041", "被邀请人用户信息不存在"),
	ACTIVITY_IS_NULL("1042", "当前活动信息不存在"),
	RECEIVE_GIFTS_IS_NULL("1043", "领取活动礼品参数不能为空"),
	RECEIVE_GIFTS_UP_LIMIT("1044", "领取活动礼品已超上限"),
	WINDOW_RECORD_ALREADY_EXIST("1045", "已经存在点击跳转弹窗记录"),
	USER_REAL_YES("1046", "用户已经实名认证 不予许修改"),
	USER_BANK_ONE_NO_DELETE("1047", "不能解绑，至少保留一张银行卡。"),
	PROJECT_PROJECT_NOT_EXIST("2000", "项目不存在"),
	PROJECT_PROJECT_ALREADY_INTEREST("2001", "当前用户已经收藏该项目"),
	PROJECT_PROJECT_SCHEME_NOT_EXIST("2002", "项目回报不存在"),
	PROJECT_PROJECT_SCHEME_CAN_NOT_TENDER("2003", "当前方案暂无法支持"),
	PROJECT_PROJECT_SCHEME_LIMIT("2004", "支持份数超过限购"),
	PROJECT_PROJECT_SCHEME_LEAVE_COUNT_NOT_ENOUGH("2005", "当前方案剩余份数不足"),
	PROJECT_PROJECT_NOT_SELLING("2006", "当前项目暂无法支持"),
	PROJECT_PROJECT_USER_TENDER_NOT_EXIST("2007", "支持记录不存在"),
	PROJECT_PROJECT_USER_TENDER_NOT_CANCEL("2008", "当前支持不能撤销"),
	PROJECT_PROJECT_USER_TENDER_MANY_RECORD("2009", "查询出多条记录"),
	PROJECT_PROJECT_USER_TENDER_FREEZE_NOTIFY_EXCEPTION("2010", "回调通知支持记录状态异常"),
	PROJECT_PROJECT_SCHEME_TENDER_PART_IS_NULL("2011", "购买项目回报数量不能为空"),
	PROJECT_PROJECT_SCHEME_TENDER_PART_GT_LIMIT("2012", "单笔支持份额不能超过10份"),
	PROJECT_PROJECT_SCHEME_TENDER_WAIT_PAY_WARN("2013", "订单处理中，请10分钟后再试"),
	PROJECT_PROJECT_SELL_END_TIME_IS_NULL("2014", "项目结束时间异常"),
	PROJECT_PROJECT_SELL_END_TIME_IS_END("2015", "项目支持已结束"),
	PROJECT_PROJECT_SELL_START_TIME_IS_NULL("2016", "项目开始时间异常"),
	PROJECT_PROJECT_IS_NOT_START("2017", "当前项目还未开始认筹"),
    PROJECT_SCHEME_TENDER_WAIT_ORDRE("2018", "订单不存在"),
	PROJECT_ITEM_NOT_EXIST("2019", "项目回报不存在，请重试"),
	INITIATE_PROJECT_INCOMPLETE_INFORMATION("2020", "发布项目参数不完整，请重新填写"),
	INITIATE_PROJECT_UP_LIMIT("2021", "发布项目已超上限，请联系商务人员处理"),
	MONEY_ERROR("2022", "选择金额有误"),
	PROJECT_ITEM_EORROR("2023", "当前认筹资料有误"),
	DELIVER_COMMENT_IS_NULL("2022", "发表项目评论内容不能为空"),
	INITIATE_PROJECT_SCHEDULE_ERROR("2023", "查询发起项目申请进度参数有误"),

	ACCOUNT_USER_ACCOUNT_NOT_EXIST("3000", "用户账户不存在"),

	ACCOUNT_USER_ACCOUNT_USEMONEY_NOT_ENOUGH("3001", "用户可用余额不足"),
	ACCOUNT_USER_ACCOUNT_CARD("3002", "用户没有绑定银行卡"),
	RECHARGE_RECHARGE_MONEY_NEED_GT0("4001", "充值金额必须大于0"),
	RECHARGE_RECHARGE_RECORD_NOT_EXIST("4002", "充值记录不存在"),
	RECHARGE_RECHARGE_MANY_RECORD("4003", "查询出多条记录"),
	NO_PAY_TYPE("4004", "当前支付方式暂时不支持"),
	WITHDRAW_WITHDRAW_MONEY_NEED_GT0("4100", "提现金额必须大于0"),
	WITHDRAW_WITHDRAW_MONEY_NEED_ELT_USEMONEY("4101", "提现金额必须小于等于账户可用余额"),
    WITHDRAW_WITHDRAW_MONEY_RECORD_NOT_EXIST("4102", "提现记录不存在"),
    WITHDRAW_WITHDRAW_MONEY_MANY_RECORD("4103", "查询出多条记录"),

	SINA_RETURN_URL_IS_NULL("5000", "回调路径不能为空"),


	SMS_IDENTITYCODE_IS_NULL("7000", "短信验证码不能为空"),
	SMS_IDENTITYCODE_IS_WRONG("7001", "验证码错误，请重新输入"),
	SMS_IDENTITYCODE_IS_INVALID("7002", "验证码已失效，请重新获取"),
	//当天同手机最大次
	SMS_DAY_MAX_COUNT("7003", "短信频繁，请稍等再试"),
	//短信时间内的如(1分钟间隔)
	SMS_TIME_MAX_COUNT("7004", "短信频繁，请稍等再试"),
	//当天同IP最大次
	SMS_IP_MAX_COUNT("7005", "短信频繁，请稍等再试"),
	SMS_SUCCESS("7006","短息验证成功"),
	SMS_FAIL("7007","短息验证失败"),


	OTHER_IMG_IS_NULL("8000", "图形验证码不能为空"),
	OTHER_IMG_IS_WRONG("8001", "图形验证码错误"),
	OTHER_CASH_FEE_IS_NULL("8002", "提现手续费不能为空"),
	OTHER_MAX_CASH_IS_NULL("8003", "最大提现金额配置异常"),
	OTHER_CASH_MONEY_MUST_LT_MAX_CASH("8004", "提现金额不能大于最大提现金额"),
	OTHER_MIN_CASH_IS_NULL("8005", "最小提现金额配置异常"),
	OTHER_CASH_MONEY_MUST_GT_MIN_CASH("8006", "提现金额必须大于最小提现金额"),
	OTHER_MAX_RECHARGE_IS_NULL("8003", "最大充值金额配置异常"),
	OTHER_RECHARGE_MONEY_MUST_LT_MAX_RECHARGE("8004", "充值金额不能大于最大充值金额"),
	OTHER_MIN_RECHARGE_IS_NULL("8005", "最小充值金额配置异常"),
	OTHER_RECHARGE_MONEY_MUST_GT_MIN_RECHARGE("8006", "充值金额不能小于最小充值金额"),
	OTHER_CASH_MONEY_MUST_GET_CASH_FEE("8007", "提现金额必须大于提现手续费"),
	OTHER_IMG_IS_INVALID("8008", "图形验证码已失效"),
	OTHER_SMS_SEND_FAIL("8009", "短信验证码发送失败"),
	//OTHER_BANNER_TYPE_IS_NULL("8010", "banner图类型不能为空"),

	//MOBILE_VALID_SIGN("9000", "SIGN验签失败"),
	//MOBILE_VALID_RSA("9001", "非法数据"),
	MOBILE_VALID_UNLOGIN("9002", "请登录后再访问"),
	MOBILE_VALID_OS_IS_NULL("9003", "os不能为空"),
	MOBILE_APP_LAST_VERSION_NOT_EXSIT("9004", "app最新版本未推送"),
	MOBILE_APP_OS_TYPE_IS_NULL("9005", "app系统类型不能为空"),
    MOBILE_APP_VERSION_NAME_IS_NULL("9006", "app版本号不能为空"),
	//MOBILE_APP_VERSION_INTERFACE_ERROR("9008", "接口版本获取异常"),
	MOBILE_APP_VERSION_IS_NOT_EXIST("9007", "当前版本不存在"),
	MOBILE_APP_VERSION_IS_LAST("9009", "当前版本是最新版本，无需更新"),

	COUNTRY_IS_NOT_NULL("9010","国籍不能为空"),
	NATION_IS_NOT_NULL("9011","民族不能为空"),
	BIRTH_DATE_IS_NOT_NULL("9012","出生日期不能为空"),
	AGE_IS_NOT_NULL("9013","年龄不能为空"),
	REGION_IS_NOT_NULL("9014","通讯地址不能为空"),
	ADDRESS_IS_NOT_NULL("9015","详细地址不能为空"),
	JOB_IS_NOT_NULL("9016","工作信息不能为空"),
	CORPORATE_NAME_IS_NOT_NULL("9017","法人姓名不能为空"),
	LICENSE_TYPE_IS_NOT_NULL("9018","执照类型不能为空"),
	LICENSE_NO_IS_NOT_NULL("9018","执照类型不能为空"),
	ORGANIZATION_TYPE_IS_NOT_NULL("9018","机构性质不能为空"),
	FILE_IS_NOT_NULL("9019","上传附件不能为空"),
	LINKMAN_IS_NOT_NULL("9020","主联系人姓名不能为空"),
	SERIAL_NO_IS_NOT_NULL("9021","客户编号不能为空"),
	ORGANIZATION_REMARK_IS_NOT_NULL("9022","机构性质类型备注不能为空"),
	LICENSE_REMARK_IS_NOT_NULL("9023","执照类型备注不能为空"),
	USER_INFO_IS_REGISTER("9024", "该用户已保存详细信息"),
	USER_SERIAL_NO_ISNULL("9025", "客户编号不能为空"),
	ORDER_INFO_IS_NULL("10001","订单基本信息未完善"),
	IMPORT_CUSTOMER_EXCEL_ERROR("9026","解析excel失败"),
	EMAIL_FORMAT_ERROR("9027","邮箱格式不正确"),
	IMPORT_FILE_ERROR("9028","导入客户数据为空或者数据库已有用户"),
	IMPORT_FILE_IS_NULL("9028","导入客户数据为空"),
	PRODUCT_BATCHES_ERROR("9029","此批次已完成兑付"),
	;

	private String code;

	private String msg;

	ResultEnum() {
	}

	ResultEnum(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

    public String getCode() {
        return code;
    }

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
